Skip to content

Latest commit

 

History

History
55 lines (44 loc) · 1.64 KB

75 - ChatOS - Debug app on iPad.md

File metadata and controls

55 lines (44 loc) · 1.64 KB
title date slug publish tags
75 - ChatOS - Debug app on iPad
2023-08-02
100daysofcode-r3-75-chatos-debug-app-on-ipad
true

Livestream

<iframe width="100%" style="aspect-ratio: 16 / 9;" src="https://www.youtube.com/embed/cR1ONcMaHIY" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

ChatOS is not working after merging Firebase branch, debugging is possible via Chrome by enabling Web Inspector and use macOS Safari to connect to the iOS Chrome's console.

I also use PiP to cast iPad's screen onto macOS for streaming.

To run local ChatOS on iPad, configure Firebase Emulator and Vite to expose host 0.0.0.0

// firebase.json
{
	"emulators": {
		"auth": {
			"port": 9099,
			"host": "0.0.0.0"
		},
		"firestore": {
			"port": 8080,
			"host": "0.0.0.0"
		},
		"ui": {
			"enabled": true,
			"port": 4444
		},
		"singleProjectMode": true
	}
}
# Run vite dev server
pnpm run dev --host 0.0.0.0

Changes

Now ChatOS works on iPad!